<template>
    <v-container id="main" style="width: 500px;height:500px;"> </v-container>
</template>

<script lang="ts">
import Vue from 'vue';
import echarts from 'echarts';
import 'echarts-gl';

export default Vue.extend({
    name: 'demo',

    data: () => ({}),
    mounted() {
        // 绘制图表。
        echarts.init(document.getElementById('main')).setOption({
            series: {
                type: 'pie',
                data: [
                    { name: 'A', value: 1212 },
                    { name: 'B', value: 2323 },
                    { name: 'C', value: 1919 },
                ],
            },
        });
    },
});
</script>
